WooCommerce\PayPalCommerce\Button\Endpoint\AbstractCartEndpoint S

Total Complexity 40
Dependencies 7
Dependents 0
Total lines 336
Lines of code 170
Logical lines of code 72
Comment lines 107
Methods 11
Properties 6

Methods 11

Method Rating Maintainability Complexity Lines of code
add_products()
A
48 11 34
products_from_data()
S
52 7 26
handle_request()
S
57 4 16
handle_error()
S
52 3 27
add_variable_product()
S
57 3 17
add_booking_product()
S
60 3 13
products_from_request()
S
57 2 19
remove_cart_items()
S
68 3 8
add_product()
S
68 2 7
nonce()
S
81 1 3
handle_data()
S
100 1 0